import request from '@/utils/request'

// 查询园区事件记录列表
export function listIncident(query) {
  return request({
    url: '/incidentLog/incident/list',
    method: 'get',
    params: query
  })
}

// 查询园区事件记录详细
export function getIncident(iId) {
  return request({
    url: '/incidentLog/incident/' + iId,
    method: 'get'
  })
}

// 新增园区事件记录
export function addIncident(data) {
  return request({
    url: '/incidentLog/incident',
    method: 'post',
    data: data
  })
}

// 修改园区事件记录
export function updateIncident(data) {
  return request({
    url: '/incidentLog/incident',
    method: 'put',
    data: data
  })
}

// 删除园区事件记录
export function delIncident(iId) {
  return request({
    url: '/incidentLog/incident/' + iId,
    method: 'delete'
  })
}
